class RegionListModel {
  int? id;
  String? name;
  String? image;
  bool selected = false;
  String? extra;
  int? deviceCount;

  RegionListModel(
      {this.id,
      this.name,
      this.image,
      this.extra,
      this.deviceCount,
      this.selected = false});

  RegionListModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    image = json['image'];
    extra = json['extra'];
    deviceCount = json['device_count'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['name'] = name;
    data['image'] = image;
    data['extra'] = extra;
    data['device_count'] = deviceCount;
    return data;
  }
}
